import { Widget, WidgetManager } from "@/core";
import * as PIXI from 'pixi.js'
class Graphic extends Widget {

    startGame(e) {
        console.log('start game')
    }
    render() {
        const graphics = new PIXI.Graphics();
        graphics.lineStyle(2, 0xFF00FF, 1);
        graphics.beginFill(0x650A5A, 0.25);
        graphics.drawRoundedRect(0, 0, 300, 80, 16);
        graphics.endFill();
        return graphics;
    }
}
WidgetManager.registerWidget('Graphic', Graphic);
